

<% if logged_in? %>
<h4 class="sets" onClick="Effect.toggle('f1','slide');"><%= current_user.display_name %>&#39;s FLASHCARD SETS</h4>
<%= link_to '', new_fset_path, {:class => "newset"} %><br /><br />

	<table class="fsets_grid" id="f1">
  	<% for fset in @my_fsets %>
  	<tr>
    	<td><%= link_to fset.name, fset %></td>
    	<td><%= link_to '', fplay_fset_url(fset), { :class => "play" } %></td>
    	<td><%= link_to '', stats_fset_url(fset), { :class => "stats" } %></td>
    	<td><%= link_to '', edit_fset_path(fset), { :class => "edit" } %></td>
    	<td><%= link_to '', fset, :class => "delete", :confirm => 'Are you sure?', :method => :delete %></td>
		<td><%= ratings_for fset, :static %></td>
  	</tr>
  	<% end %>
</table>

<% end %>



<h4 class="sets" onClick="Effect.toggle('f2','slide');">OTHER PEOPLE&#39;S SETS YOU CAN PLAY!</h4>


<table class="fsets_grid" id="f2">

<% for fset in @all_fsets %>
  <tr>
    <td><%= link_to fset.name + " (" + fset.flashcards.count.to_s + ")", fset %><%= link_to 'by '+fset.user.login, user_path(fset.user_id) %></td>
    <td><%= link_to '', new_fset_game_url(fset), { :class => "play" } %></td>
	<td><%= ratings_for fset, :static %></td>
  </tr>
<% end %>
</table>

<h4 class="sets">  <%= will_paginate @all_fsets, :page_links => false %><span id="pages"><%= page_entries_info @all_fsets, :entry_name => 'sets' %></span></h4>
